package com.chengh.nami.system.domain.dto;

import com.chengh.nami.common.domain.pojo.SysRole;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

/**
 * role类接受参数
 *
 * @author chenghang
 */
@Getter
@Setter
@ToString(callSuper = true)
public class RoleDto extends SysRole {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;

    /** 角色的菜单ID结合 */
    private List<Long> menuIds;
}
